<<<<<<< HEAD
<<<<<<< HEAD
import {Navigate, createBrowserRouter} from 'react-router-dom'
import ShoppMain from '../components/xuweixin/gouwuche/shoppMain'
import Submitbuy from '../components/xuweixin/gouwuche/Submitbuy'
import Mess from '../components/xuweixin/Mess'
import Address from "../components/xuweixin/address"
import Showding from '../components/xuweixin/Showding'
import Addressoption from '../components/xuweixin/Addressoption'
=======
import { Navigate, createBrowserRouter } from 'react-router-dom'
import App from '../App'
import Index from '../components/jiayutingandzhaojunjie/shouye/index'
import SpecialEvent from '../components/jiayutingandzhaojunjie/shouye/SpecialEvent'
import Address from '../components/jiayutingandzhaojunjie/shouye/Address'
import SearHistory from '../components/jiayutingandzhaojunjie/shouye/SearHistory'
import City from '../components/jiayutingandzhaojunjie/shouye/City'
>>>>>>> origin/zhaojunjie
const router=createBrowserRouter([
    {
        path:"/xumain",
        element:<ShoppMain></ShoppMain>
    },
    {
        path:"/submitbuy",
        element:<Submitbuy></Submitbuy>
    },
    {
        path:"/shoppmess",
        element:<Mess></Mess>
    },
    {
        path:"/address",
        element:<Address></Address>
    },
    {
        path:"/showding",
        element:<Showding></Showding>
    },
    {
        path:"/addressoptions",
        element:<Addressoption></Addressoption>
    },
    {
        path:'/',
<<<<<<< HEAD
        element:<Navigate to="/xumain"></Navigate>
=======
        element: <App />,
        children: [
            {
                path: '/index',
                element:<Index/>
            },
            {
                path: '/',
                element:<Navigate to='/index'/>
            }
        ]
>>>>>>> origin/zhaojunjie
    },
    {
        path: '/specialEvent',
        element:<SpecialEvent/>
    },
    {
        path: '/address',
        element:<Address/>
    },
    {
        path: '/city',
        element: <City />
    },
    {
        path: '/searHistory',
        element:<SearHistory/>
    }
=======
import { createBrowserRouter, Navigate } from 'react-router-dom'
import App from '../App'
import Home from '../components/jiayutingandzhaojunjie/shouye'
import Type from '../components/limengxi/fenlei'
import Cart from '../components/xuweixin/gouwuche'
import My from '../components/dongmingxuan/wode'
import Index from "../components/limengxi/fenlei"
import Sou from '../components/limengxi/fenlei/Sou'
import Xiang from '../components/limengxi/fenlei/Xiang'
import Miaosha from '../components/jiayutingandzhaojunjie/Miaosha'
import JiFen from '../components/jiayutingandzhaojunjie/JiFen'
// import You from '../components/limengxi/fenlei/You'
// import { Navigate } from 'react-router-dom'
const router=createBrowserRouter([
    {
        path: '/',
        element: <App></App>,
        children: [
            {
                path: '/home',
                element: <Home></Home>
            },
            {
                path: '/type',
                element: <Type></Type>
            },
            {
                path: '/cart',
                element: <Cart></Cart>
            },
            {
                path: '/my',
                element: <My></My>
            },
            {
                path: 'cate',
                element: <Index />,
            },
            {
                path: '/',
                element: <Navigate to='/home'></Navigate>
            }
        ]
    },
    {
        path: '/miaosha',
        element: <Miaosha></Miaosha>
    },
    {
        path: '/jifen',
        element: <JiFen></JiFen>
    },
    {
        path: '/sou',
        element: <Sou></Sou>,
    },
    {
        path: '/xiang',
        element: <Xiang></Xiang>,
    },
    // {
    //     path:'/you',
    //     element:<You></You>,
    // }
>>>>>>> origin/jiayuting
])

export default router

